home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_02
/
2n02047a
< prev
next >
Wrap
Text File
|
1990-12-29
|
615b
|
18 lines
#include <string.h>
#include "netbios.h"
/*************************************************************
* init_ncb - clear and initialize net control block
* Parameters: ncb (in/out) - net control block to be cleared
* Notes: code sets the network adapter number to 0 (primary)
* History: Original code by William H. Roetzheim, 1990
***************************************************************/
void init_ncb(struct net_control_block *ncb)
{
memset(ncb, 0, sizeof(struct net_control_block));
ncb->rto = RECEIVE_TIMEOUT;
ncb->sto = SEND_TIMEOUT;
}